package com.lushu.chapitre1.dialogue.nodes
{
	import com.lushu.chapitre1.dialogue.api.INode;
	
	public class DefaultNode extends AbstractNode
	{
		public function DefaultNode(type : String)
		{
			type_ = type;
		}
		
		public override function toXML(level : int = 0) : String
		{
			var tabIndex : String ="";
			for(var j : int = 0; j < level; j++)
			{
				tabIndex+="\t";
			}
			var nodeXML : String = tabIndex+"<"+type+">";
			var child : INode;
			
			
			for(var i : int = 0; i < children.length; i++)
			{
				child = children[i];
				nodeXML += "\n"+child.toXML(level+1);
			}
			nodeXML += "\n"+tabIndex+"</"+type+">";
			return nodeXML;
		}
		
		public override function setInformation(value : XML) : void
		{
		}
	
	}
}